package day03;

public class OperDemo1 {
    public static void main(String[] args) {
        /*System.out.println('李'%98);
        int a=5,b=5;
        a++;
        ++b;
        System.out.println(a);
        System.out.println(b);
        System.out.println("-------------------");

        int c=5,d=5;
        int e = c++;//将c++的值赋值给e,同时c自增1变为6
        int f = ++d;//将++d的值6赋值给f,同时d自增1变为6
        System.out.println(c);//6
        System.out.println(d);//6
        System.out.println(e);//5
        System.out.println(f);//6
        */

        int  a=5,b=5;
        a--;
        --b;
        System.out.println(a);
        System.out.println(b);
        System.out.println("------------------------");

        int c=5,d=5;
        int e = c--;//将c--的值5赋值给e,同时c自减1变为4
        int f = --d;//将--d的值4赋值给f,同时d自减1变为4
        System.out.println(c);
        System.out.println(d);
        System.out.println(e);
        System.out.println(f);
    }
}
